<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>修改密码</title>
<link rel="stylesheet" href="${base}/static/res/manage/css/common.css" >
<link rel="stylesheet" href="${base}/static/res/manage/css/ec.css" >
<link rel="stylesheet" href="${base}/static/res/manage/css/list.css" >
<style type="text/css">
	.tab h3{min-width:300px;}
    .set .tablist {width: 97%;}
	.tablist{min-height:270px;}
</style>
<script type="text/javascript" src="${base}/static/res/plugin/jquery/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="${base}/static/res/plugin/validator/jquery.validate.min.js"></script>
<script type="text/javascript" src="${base}/static/res/admin/js/common.js"></script>
<script type="text/javascript">
$(document).ready(function(){

	[@flash_message /]

	$("#passwordFirst").focus();
	$("#inputForm").validate({
		rules:{
			passwordFirst:{
				required:true,
                checkPassword:true
			},
			passwordOne:{
				required:true,
                checkPassword:true
			},
			passwordTwo:{
				required:true,
                checkPassword:true,
				equalTo:'#passwordOne'
			}
		},
		messages:{
			passwordFirst:{
				required:'请输入当前密码',
                checkPassword:"6-20位字母和数字，区分大小写"
			},
			passwordOne:{
				required:'请输入新密码',
                checkPassword:"6-20位字母和数字，区分大小写"
			},
			passwordTwo:{
				required:'请输入确认密码',
                checkPassword:"6-20位字母和数字，区分大小写",
				equalTo:'两次输入密码不一致，请重新输入！'
			}
		}
	});
});
</script>
</head>
<body>
	<form id="inputForm" action="/admin/admin/updatePassword.jhtml" method="post">
		<div class="tab set arr">
			<h3><a href="javascript:;">修改密码</a></h3>
			<div class="tablist message">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<td><label>当前密码<span class="cred">*</span></label></td>
						<td>
							<input type="password" name="passwordFirst" id="passwordFirst"/>
						</td>
					</tr>
					<tr>
						<td><label>新密码<span class="cred">*</span></label></td>
						<td>
							<input type="password" name="passwordOne" id="passwordOne"/>
						</td>
					</tr>
					<tr>
						<td><label>确认密码<span class="cred">*</span></label></td>
						<td>
							<input type="password" name="passwordTwo"/>
						</td>
					</tr>
				</table>
				<p class="save">
					<input type="submit" value="保存" class="red">
				</p>
			</div>
		</div>
	</form>
</body>
</html>
